﻿using Jayden.Dll.Web.Enums;

namespace Jayden.Dll.Web.Json
{
	public class JsonNumber : JsonValue
	{
		public double Value;
		public JsonNumber() { }
		public JsonNumber(double value) { Value = value; }
		public string ToJson(RenderMode mode, int level) { return JsonHelper.EncodeNumber(Value); }
		public override string ToString() { return ToJson(RenderMode.Debug, 0); }
	}
}
